import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

public class MainMidlet extends MIDlet implements CommandListener {
    
    private GridView f_home;
    public MainMidlet(){
        AppManager.loadApp(Display.getDisplay(this));
        f_home = new GridView();
        f_home.setCommandListener(this);
    }

    public void startApp() {
        AppManager.open(f_home);
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
    }

    public void commandAction(Command c, Displayable d) {
        if (c==f_home.CMD_EXIT) {
            this.notifyDestroyed();
            this.destroyApp(true);
        }
    }
}
